﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ASPNETPerformance.App_BusinessLogic.BasePages;
using ASPNETPerformance.App_BusinessLogic.StaticPage;

namespace ASPNETPerformance._06_Cache {
    public partial class RequestCache : BasePage {
        protected void Page_Load( object sender, EventArgs e ) {
            if ( !this.Page.IsPostBack ) {
                Global.RequestCache.Add( "RequestCache",
                StaticPageManager.GetGenerationProductsData().Find( f => f.ItemCode == "07-015-000AC" ) );
            }
        }
    }
}